package concurrency.chapter1;

import java.util.concurrent.TimeUnit;

/**
 * FileName: BlockedDemo
 * Author:   周壮
 * Date:     2020/5/17 17:32
 * Description:
 */
public class BlockedDemo implements Runnable {
    @Override
    public void run() {
        synchronized (BlockedDemo.class) {
            while (true) {
                try {
                    TimeUnit.SECONDS.sleep(100);
                } catch (InterruptedException e){
                    e.printStackTrace();
                }
            }
        }
    }
}
